package design2.state.example.demo2.activity.event;

import design2.state.example.demo2.activity.ActivityService;
import design2.state.example.demo2.activity.Result;
import design2.state.example.demo2.activity.Status;

public  class CloseState  extends State {


    @Override
    public Result arraignment(String activityId, Enum<Status> currentStatus) {
        return null;
    }

    @Override
    public Result checkPass(String activityId, Enum<Status> currentStatus) {
        return null;
    }

    @Override
    public Result checkRefuse(String activityId, Enum<Status> currentStatus) {
        return null;
    }

    @Override
    public Result checkRevoke(String activityId, Enum<Status> currentStatus) {
        return null;
    }

    @Override
    public Result close(String activityId, Enum<Status> currentStatus) {
        ActivityService.execStatus(activityId,currentStatus,Status.Close);
        return new Result("0000","活动关闭成功");
    }

    @Override
    public Result open(String activityId, Enum<Status> currentStatus) {
        return null;
    }

    @Override
    public Result doing(String activityId, Enum<Status> currentStatus) {
        return null;
    }


}
